<%@ page import="com.yyyzzz.DAO.impl.teacherDaoimpl" %>
<%@ page import="com.yyyzzz.DAO.teacherDao" %>
<%@ page import="com.mysql.cj.Session" %>
<%@ page import="com.yyyzzz.bean.Teacher" %>
<%@ page import="java.sql.SQLException" %><%--
  Created by IntelliJ IDEA.
  User: ZY
  Date: 2021/12/9
  Time: 18:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>教师个人信息</title>
</head>
<body>
<div style="align-content: center">
<table border="1">
    <tr>
    <th>账号</th>
    <th>姓名</th>
    <th>所授课程</th>
    <th>性别</th>
    </tr>
    <%
        teacherDaoimpl teacherDaoimpl = new teacherDaoimpl ();
        int id = (int) session.getAttribute ("id");
        Teacher teacher = teacherDaoimpl.getTeacherById (id);
    %>
<tr>
    <td><%=teacher.getTeacherNo()%></td>
    <td><%=teacher.getTeachername()%></td>
    <td><%=teacher.getTeacherjob()%></td>
    <td><%=teacher.getSex()%></td>
</tr>
</table>
</div>
</body>
</html>
